package com.yaoyong.codegenerator.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 项目实体模型
 *
 * @author 姚勇
 */
@Component
@ConfigurationProperties(prefix = "code.generator.project")
public class ProjectProperties {
    /**
     * 项目名(英文)
     */
    private String name = "demo";
    /**
     * 项目名(中文)
     */
    private String comment = "案例演示";
    /**
     * 包名(域名倒过来写)
     */
    private String packageName = "com.yao.demo";
    /**
     * 项目组ID
     */
    private String groupId = "com.yao";
    /**
     * 　项目ID
     */
    private String artifactId = "demo";
    /**
     * 项目版本号
     */
    private String version = "1.0.0";
    /**
     * 作者
     */
    private String author = "yao";


    public String getName() {
        return name;
    }

    public ProjectProperties setName(String name) {
        this.name = name;
        return this;
    }

    public String getComment() {
        return comment;
    }

    public ProjectProperties setComment(String comment) {
        this.comment = comment;
        return this;
    }

    public String getPackageName() {
        return packageName;
    }

    public ProjectProperties setPackageName(String packageName) {
        this.packageName = packageName;
        return this;
    }

    public String getGroupId() {
        return groupId;
    }

    public ProjectProperties setGroupId(String groupId) {
        this.groupId = groupId;
        return this;
    }

    public String getArtifactId() {
        return artifactId;
    }

    public ProjectProperties setArtifactId(String artifactId) {
        this.artifactId = artifactId;
        return this;
    }

    public String getVersion() {
        return version;
    }

    public ProjectProperties setVersion(String version) {
        this.version = version;
        return this;
    }

    public String getAuthor() {
        return author;
    }

    public ProjectProperties setAuthor(String author) {
        this.author = author;
        return this;
    }

    @Override
    public String toString() {
        return "ProjectProperties{" +
                "name='" + name + '\'' +
                ", comment='" + comment + '\'' +
                ", packageName='" + packageName + '\'' +
                ", groupId='" + groupId + '\'' +
                ", artifactId='" + artifactId + '\'' +
                ", version='" + version + '\'' +
                ", author='" + author + '\'' +
                '}';
    }
}
